package com.sx.yqxt.pojo.vo;

import com.sx.yqxt.pojo.entity.Record;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class TableVO {
    private String name;
    private Integer con;//累计确诊
    private Integer recover;//累计治愈
    private Integer dead;//累计死亡
    private Integer now_con;//现有确诊
    public TableVO(Record record){
        this.name = record.getName();
        this.con = record.getConfirm();
        this.dead = record.getDead();
        this.recover = record.getHeal();
        this.now_con = con - dead - recover;
    }
}
